package bairui.international.console.web.controller.authority.authorization.tool;

import com.lianjing.sh.spring.web.controller.enhance.tab.TabContext;

import bairui.international.console.web.controller.authority.authorization.department.C_Authority_Authorization_Department_TreeAccess;
import bairui.international.console.web.controller.authority.authorization.group.C_Authority_Authorization_Group_PageAccess;
import bairui.international.console.web.controller.authority.authorization.position.C_Authority_Authorization_Position_TreeAccess;
import bairui.international.console.web.controller.authority.authorization.role.C_Admin_Authority_Authorization_Role_PageAccess;

public class AuthorizationTabTool {

	public static void tab(TabContext tabContext){
		tabContext
			.add(new C_Authority_Authorization_Department_TreeAccess.TreeAccess.Operate(){
				@Override public Object getParentId() {
					return null;
				};
				@Override public String comment() {
					return "按部门授权";
				}
			})
			.add(new C_Authority_Authorization_Position_TreeAccess.TreeAccess.Operate(){
				@Override public Object getParentId() {
					return null;
				};
				@Override public String comment() {
					return "按职位授权";
				};
			})
			.add(new C_Admin_Authority_Authorization_Role_PageAccess.PageAccess.Operate(){
				@Override public String comment() {
					return "按角色授权";
				};
			})
			.add(new C_Authority_Authorization_Group_PageAccess.PageAccess.Operate(){
				@Override public String comment() {
					return "按群组授权";
				};
			});
	}
	
}
